package com.heo.music.player.converter;

import com.heo.music.player.dto.output.UserInfoOutput;
import com.heo.music.player.entity.UserInfo;
import org.modelmapper.ModelMapper;
import org.springframework.stereotype.Component;

/**
 * created on 2024-05-12 10:31
 *
 * @author 星天无极
 **/
@Component
public class UserInfoConverter extends AbstractConverter<UserInfo, UserInfoOutput> {

    public UserInfoConverter(ModelMapper modelMapper) {
        super(modelMapper);
    }

    @Override
    public UserInfoOutput convert(UserInfo userInfo) {
        return modelMapper.map(userInfo, UserInfoOutput.class);
    }

}
